"""UITestProj URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from UITestCase import views as case_views
from UICaseRunner import views as runner_views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('uitest/systems', case_views.get_systems),

    path('uitest/models', case_views.get_models),
    path('uitest/modelsPage', case_views.get_models_page),
    path('uitest/models/add', case_views.add_model),
    path('uitest/modelsPage/add', case_views.get_model_add_page),
    path('uitest/models/delete', case_views.delete_model),

    path('uitest/pages', case_views.get_pages),
    path('uitest/pagesPage', case_views.get_pages_page),
    path('uitest/pages/add', case_views.add_page),
    path('uitest/pagesPage/add', case_views.get_page_add_page),
    path('uitest/pages/delete', case_views.delete_page),

    path('uitest/elements', case_views.get_elements),
    path('uitest/elementsPage', case_views.get_elements_page),
    path('uitest/elements/add', case_views.add_element),
    path('uitest/elementsPage/add', case_views.get_elements_add_page),
    path('uitest/elements/delete', case_views.delete_element),

    path('', case_views.get_scenarios_page),
    path('uitest/scenarios', case_views.get_scenarios),
    path('uitest/scenariosPage', case_views.get_scenarios_page),
    path('uitest/scenarios/add', case_views.add_scenarios),
    path('uitest/scenariosPage/add', case_views.get_scenarios_add_page),
    path('uitest/scenarios/delete', case_views.delete_scenarios),

    path('uitest/scenariosElement', case_views.get_scenarios_element),
    path('uitest/scenarios/detail', case_views.get_scenarios_element_page),
    path('uitest/scenariosElement/add', case_views.add_scenarios_element),
    path('uitest/scenariosPageElement/add', case_views.get_scenarios_element_add_page),
    path('uitest/scenariosElement/delete', case_views.delete_scenarios_element),

    path('uitest/caseRunner/runScenarios', runner_views.run_scenarios),
]
